import request from '@/utils/request'

// 查询用户体力信息列表
export function listUserEnergys(query) {
  return request({
    url: '/system/userEnergys/list',
    method: 'get',
    params: query
  })
}

// 查询用户体力信息详细
export function getUserEnergys(userEnergysId) {
  return request({
    url: '/system/userEnergys/' + userEnergysId,
    method: 'get'
  })
}

// 新增用户体力信息
export function addUserEnergys(data) {
  return request({
    url: '/system/userEnergys',
    method: 'post',
    data: data
  })
}

// 修改用户体力信息
export function updateUserEnergys(data) {
  return request({
    url: '/system/userEnergys',
    method: 'put',
    data: data
  })
}

// 删除用户体力信息
export function delUserEnergys(userEnergysId) {
  return request({
    url: '/system/userEnergys/' + userEnergysId,
    method: 'delete'
  })
}
